package cate.game.role.farm.tower.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBTower;
import cate.game.res.MixRes;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "美食神殿挑战扫荡返回")
public class TowerChallengeResultResp implements MsgOutput {
    @NoteField(value = "挑战是否成功")
    public boolean win;

    @NoteField(value = "获得的奖励", detail = "如果失败，则为null")
    public MixRes reward;

    public TowerChallengeResultResp(){

    }

    public TowerChallengeResultResp(boolean win, MixRes reward){
        this.win = win;
        this.reward = reward;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTower.CHALLENGE_RESP;
    }
}
